<div id="flexslider" class="flexslider">
    <ul class="slides">
        <li>
            <a href="#"><img width="600" height="330" src="/wp-content/uploads/2013/08/1-600x330.jpg" class="attachment-660x330" alt="Thiết kế và thi công nhà phố tại quận 12" title="Thiết kế và thi công nhà phố tại quận 12" /></a>
            <div class="slider-caption">
                <h2><a href="#">Thiết kế và thi công nhà phố tại quận 12</a></h2>
                <p>Tên dự án: THIẾT KẾ THI CÔNG NHÀ PHỐ CHỊ ĐIỆP Chủ đầu tư: Thái Thị Hồng Điệp Địa chỉ: Phường Tam Phú...</p>
            </div>
        </li>
        <li>
            <a href="#"><img width="600" height="330" src="/wp-content/uploads/2013/08/nha-chi-hien1-600x330.jpg" class="attachment-660x330" alt="Thiết kế thi công biệt thự sân vườn gia đình" title="Thiết kế thi công biệt thự sân vườn gia đình" /></a>
            <div class="slider-caption">
                <h2><a href="#">Thiết kế thi công biệt thự sân vườn gia đình anh Hiền</a></h2>
                <p>Tên dự án: THI CÔNG BIỆT THỰ SÂN VƯỜN GIA ĐÌNH  Chủ đầu tư: NGUYỄN THỊ ĐIỆP Địa chỉ: 33 KP 3...</p>
            </div>
        </li>
        <li>
            <a href="#"><img width="660" height="330" src="/wp-content/uploads/2013/08/Nha-chi-tra-quan-4-660x330.jpg" class="attachment-660x330" alt="Thiết kế thi công nhà phố" title="Thiết kế thi công nhà phố" /></a>
            <div class="slider-caption">
                <h2><a href="#">Thiết kế thi công nhà phố Chị Trà tại quận 4</a></h2>
                <p>Tên dự án: THIẾT KẾ THI CÔNG NHÀ PHỐ CHỊ TRÀ Chủ đầu tư: Huỳnh Thị Thanh Trà Địa chỉ: 144 Bến Vân Đồ...</p>
            </div>
        </li>
        <li>
            <a href="#"><img width="500" height="330" src="/wp-content/uploads/2013/07/nhaocaotang-500x330.jpg" class="attachment-660x330" alt="Dự án Xây dựng nhà ở cao tầng tại Quận Bình Thạnh, Hồ Chí Minh" title="Dự án Xây dựng nhà ở cao tầng tại Quận Bình Thạnh, Hồ Chí Minh" /></a>
            <div class="slider-caption">
                <h2><a href="#">Dự án Xây dựng nhà ở cao tầng tại Quận Bình Thạnh, Hồ Chí Minh</a></h2>
                <p>Công ty xây dựng Nhà Cường Phú chuyên xây dựng nhà ở với nhiều dự án Xây dựng nhà ở cao tầng đã thực...</p>
            </div>
        </li>
        <li>
            <a href="#"><img width="500" height="330" src="/wp-content/uploads/2013/07/nhaogiadinh-500x330.jpg" class="attachment-660x330" alt="Xây dựng nhà ở gia đình tại Quận Bình Thạnh, Hồ Chí Minh" title="Xây dựng nhà ở gia đình tại Quận Bình Thạnh, Hồ Chí Minh" />				
            </a>
            <div class="slider-caption">
                <h2><a href="#">Xây dựng nhà ở gia đình tại Quận Bình Thạnh, Hồ Chí Minh</a></h2>
                <p>Công ty xây dựng Nhà Cường Phú chuyên xây dựng nhà ở với nhiều dự án nhà ở gia đình đã thực hiện tại...</p>
            </div>
        </li>
    </ul>
</div>
<script>
jQuery(window).load(function() {
  jQuery('#flexslider').flexslider({
    animation: "fade",	slideshowSpeed: 7000,
    animationSpeed: 600,
    randomize: false,
    pauseOnHover: true,
    start: function(slider) {
            var slide_control_width = 100/5;
            jQuery('.flex-control-nav li').css('width', slide_control_width+'%');
        }
  });
});
</script>

<section class="cat-box scroll-box">
    <div class="cat-box-title">
        <h2><a href="chuyenmuc.html">Sản phẩm</a></h2>
        <div class="stripe-line"></div>
    </div><!-- post-thumbnail /-->
    <div class="cat-box-content">
        <div  id="slideshow1">
        <?php
		foreach ($dataProductPageIndex as $entry) {
		?>
            <div class="scroll-item">
                <div class="post-thumbnail"><img width="337" height="258" src="<?php echo($entry[3]); ?>" class="attachment-272x125" alt="<?php echo($entry[1]); ?>" title="<?php echo($entry[1]); ?>" /></a>
                </div><!-- post-thumbnail /-->
                            
                <h3 class="post-box-title"><a href="/san-pham/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="<?php echo($entry[1]); ?>" rel="bookmark"><?php echo($entry[1]); ?></a></h3>
            </div>
        <?php
		}
		?>
            <div class="clear"></div>
        </div>
        <div id="nav1" class="scroll-nav"></div>
    </div><!-- .cat-box-content /-->
</section>
<div class="clear"></div>

<?php
foreach ($menuDuAn as $entry) {
	$dataDuAnDetailPageIndex = getDuAnsLimitIndex($entry[0], 0, 6);
?>
<section class="cat-box recent-box">
    <div class="cat-box-title">
        <h2><a href="/du-an/danhmuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html"><?php echo($entry[1]); ?></a></h2>
        <div class="stripe-line"></div>
    </div><!-- post-thumbnail /-->
    <div class="cat-box-content">
    <?php
	foreach ($dataDuAnDetailPageIndex as $endetail) {
	?>
        <div class="recent-item">
            <div class="post-thumbnail">
                <a href="/du-an/<?php echo($endetail[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($endetail[3]))); ?>.html" title="<?php echo($endetail[3]); ?>" rel="bookmark">
                    <img width="200" height="133" src="images test/cau binh.jpg" class="attachment-272x125" alt="<?php echo($endetail[3]); ?>" title="<?php echo($endetail[3]); ?>" />
                    <span class="overlay-icon"></span>
                </a>
            </div><!-- post-thumbnail /-->
            <h3 class="post-box-title"><a href="/du-an/<?php echo($endetail[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($endetail[3]))); ?>.html" title="<?php echo($endetail[3]); ?>" rel="bookmark"><?php echo($endetail[3]); ?></a></h3>
            <p class="post-meta"><span><?php echo(int_to_date($endetail[8])); ?></span></p>
        </div>
    <?php
	}
	?>
        <div class="clear"></div>
    </div><!-- .cat-box-content /-->
</section>
<div class="clear"></div>
<?php
}
?>

<?php /*?><section class="cat-box list-box">
    <div class="cat-box-title">
        <h2><a href="chuyenmuc.html">Sự kiện về công ty</a></h2>
        <div class="stripe-line"></div>
    </div><!-- post-thumbnail /-->
    <div class="cat-box-content">
        <ul>
            <li class="first-news">
                <div class="post-thumbnail">
                    <a href="chitiet.html" title="chitietcongtrinh" rel="bookmark">
                        <img width="272" height="125" src="images test/do thi metro HN.jpg" class="attachment-272x125" alt="chitietcongtrinh" title="Gchitietcongtrinh" />
                        <span class="overlay-icon"></span>
                    </a>
                </div><!-- post-thumbnail /-->
                <h2 class="post-box-title"><a href="chitiet.html" title="chitietcongtrinh" rel="bookmark">HỘI THẢO KHOA HỌC CÔNG NGHỆ DÙNG GIẢI PHÁP</a></h2>
                <p class="post-meta">
                    <span>Tháng Bảy 17, 2013</span>
                    <a href="chitiet.html" title="Pchitietcongtrinh">Leave a comment</a>
                </p>
        
                <div class="entry">Ngày 21/01/2013 vừa qua tại Văn phòng Cầu Lớn – Hầm thuộc Tổng Công ty Tư Vấn Thiết Kế ....		<a class="more-link" href="chitiet.html">Read More &raquo;</a>
                </div>
            </li><!-- .first-news -->
            <li class="other-news">
                <div class="post-thumbnail">
                    <a href="chitiet.html" title="chitietcongtrinh" rel="bookmark"><img width="55" height="55" src="images test/hoi thao truong dinh.JPG" class="attachment-55x55" alt="chitietcongtrinh" title="chitietcongtrinh" /></a>
                </div><!-- post-thumbnail /-->
                        
                <h3 class="post-box-title"><a href="chitiet.html" title="chitietcongtrinh" rel="bookmark">HỘI THẢO CHUYÊN ĐỀ GIỚI THIỆU</a></h3>
                <p class="post-meta">
                    <span>Tháng Bảy 17, 2013</span>
                    <a href="chitiet.html" title="Pchitietcongtrinh">Leave a comment</a>
                </p>
            </li>
            <li class="other-news">
                <div class="post-thumbnail">
                    <a href="chitiet.html" title="chitietcongtrinh" rel="bookmark"><img width="55" height="55" src="images test/hoi thao truong dinh.JPG" class="attachment-55x55" alt="chitietcongtrinh" title="chitietcongtrinh" /></a>
                </div><!-- post-thumbnail /-->
                <h3 class="post-box-title"><a href="chitiet.html" title="chitietcongtrinh" rel="bookmark">HỘI THẢO CHUYÊN ĐỀ GIỚI THIỆU</a></h3>
                <p class="post-meta">
                    <span>Tháng Bảy 17, 2013</span>
                    <a href="chitiet.html" title="Pchitietcongtrinh">Leave a comment</a>
                </p>
            </li>
            <li class="other-news">
                        
                <div class="post-thumbnail">
                    <a href="chitiet.html" title="chitietcongtrinh" rel="bookmark"><img width="55" height="55" src="images test/hoi thao truong dinh.JPG" class="attachment-55x55" alt="chitietcongtrinh" title="chitietcongtrinh" /></a>
                </div><!-- post-thumbnail /-->
                        
                <h3 class="post-box-title"><a href="chitiet.html" title="chitietcongtrinh" rel="bookmark">HỘI THẢO CHUYÊN ĐỀ GIỚI THIỆU</a></h3>
                <p class="post-meta">
                    <span>Tháng Bảy 17, 2013</span>
                    <a href="chitiet.html" title="Pchitietcongtrinh">Leave a comment</a>
                </p>
            </li>
            
            <li class="other-news">
                <div class="post-thumbnail">
                    <a href="chitiet.html" title="chitietcongtrinh" rel="bookmark"><img width="55" height="55" src="images test/hoi thao truong dinh.JPG" class="attachment-55x55" alt="chitietcongtrinh" title="chitietcongtrinh" /></a>
                </div><!-- post-thumbnail /-->
                        
                <h3 class="post-box-title"><a href="chitiet.html" title="chitietcongtrinh" rel="bookmark">HỘI THẢO CHUYÊN ĐỀ GIỚI THIỆU</a></h3>
                <p class="post-meta">
                    <span>Tháng Bảy 17, 2013</span>
                    <a href="chitiet.html" title="Pchitietcongtrinh">Leave a comment</a>
                </p>
            </li>
        </ul>
        <div class="clear"></div>
    </div><!-- .cat-box-content /-->
</section><?php */?><!-- List Box -->


<section class="cat-box list-box">
    <div class="cat-box-title">
        <h2><a href="/tin-tuc.html">Tin tức chuyên ngành</a></h2>
        <div class="stripe-line"></div>
    </div><!-- post-thumbnail /-->
    <div class="cat-box-content">
        <ul>
        <?php
		$index = 1;
		foreach($dataTinTucPageIndex as $entry) {
			if ($index == 1) {
		?>
            <li class="first-news">
                <div class="post-thumbnail">
                    <a href="/tin-tuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html" title="<?php echo($entry[3]); ?>" rel="bookmark">
                        <img width="272" height="125" src="<?php echo($entry[4]); ?>" class="attachment-272x125" alt="<?php echo($entry[3]); ?>" title="<?php echo($entry[3]); ?>" />
                        <span class="overlay-icon"></span>
                    </a>
                </div><!-- post-thumbnail /-->
                <h2 class="post-box-title"><a href="/tin-tuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html" title="<?php echo($entry[3]); ?>" rel="bookmark"><?php echo($entry[3]); ?></a></h2>
                <p class="post-meta">
                    <span><?php echo(int_to_date($entry[8])); ?></span>	
                    <a href="/tin-tuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html" title="<?php echo($entry[3]); ?>">Leave a comment</a>
                </p>
                <div class="entry"><?php echo($entry[5]); ?><a class="more-link" href="/tin-tuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html"> Read More &raquo;</a></div>
            </li><!-- .first-news -->
<?php
			} else {
?>
            <li class="other-news">
                <div class="post-thumbnail">
                    <a href="/tin-tuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html" title="<?php echo($entry[3]); ?>" rel="bookmark"><img width="55" height="55" src="images test/page1-img9.jpg" class="attachment-55x55" alt="<?php echo($entry[3]); ?>" title="<?php echo($entry[3]); ?>" /></a>
                </div><!-- post-thumbnail /-->
                <h3 class="post-box-title"><a href="/tin-tuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html" title="<?php echo($entry[3]); ?>" rel="bookmark"><?php echo($entry[3]); ?></a></h3>
                <p class="post-meta">
                    <span><?php echo(int_to_date($entry[8])); ?></span>
                    <a href="/tin-tuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html" title="<?php echo($entry[3]); ?>">Leave a comment</a>
                </p>
            </li>
            <?php
			}
			$index++;
		}
			?>
        </ul>
        <div class="clear"></div>
    </div><!-- .cat-box-content /-->
</section><!-- List Box -->


<section class="cat-box pic-box clear">
    <div class="cat-box-title">
        <h2><a href="/albums.html">Thư viện</a></h2>
        <div class="stripe-line"></div>
    </div><!-- post-thumbnail /-->
    <div class="cat-box-content">
        <ul>
        	<?php
			$dataImageAlbumDetail = getAlbumDetailsLimitIndex("", 0, 13);
			$index = 1;
			foreach ($dataImageAlbumDetail as $entry) {
				if ($index == 1) {
			?>
            <li class="first-pic">
                <div class="post-thumbnail">
                    <a href="albums.html" title="<?php echo($entry[4]); ?>" rel="bookmark"><img width="290" height="195" src="<?php echo($entry[5]); ?>" class="attachment-290x195" alt="<?php echo($entry[4]); ?>" title="<?php echo($entry[4]); ?>" /><h2><?php echo($entry[4]); ?></h2></a>
                </div><!-- post-thumbnail /-->
            </li><!-- .first-pic -->
            <?php
				} else {
			?>
            <li>
                <div class="post-thumbnail">
                    <a href="albums.html" title="<?php echo($entry[4]); ?>" class="ttip"><img width="55" height="55" src="<?php echo($entry[5]); ?>" class="attachment-55x55" alt="<?php echo($entry[4]); ?>" title="<?php echo($entry[4]); ?>" /></a>
                </div><!-- post-thumbnail /-->
            </li>
            <?php
				}
				$index++;
			}
			?>
        </ul>
        <div class="clear"></div>
    </div><!-- .cat-box-content /-->
</section>

<section class="cat-box column2 ">
    <div class="cat-box-title">
        <h2><a href="/tailieuchongtham.html">Tài liệu chống thấm</a></h2>
        <div class="stripe-line"></div>
    </div><!-- post-thumbnail /-->
    <div class="cat-box-content">
        <ul>
        <?php
		$index = 1;
		foreach($taiLieuChongThamIndex as $entry) {
			if ($index == 1) {
		?>
            <li class="first-news">
                <div class="inner-content">
                    <div class="post-thumbnail">
                        <a href="/tai-lieu-chong-tham/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="<?php echo($entry[1]); ?>" rel="bookmark">
                            <img width="272" height="125" src="<?php echo($entry[6]); ?>" class="attachment-272x125" alt="<?php echo($entry[1]); ?>" title="<?php echo($entry[1]); ?>" />
                            <span class="overlay-icon"></span>
                        </a>
                    </div><!-- post-thumbnail /-->
                    <h2 class="post-box-title"><a href="/tai-lieu-chong-tham/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="<?php echo($entry[1]); ?>" rel="bookmark"><?php echo($entry[1]); ?></a></h2>
                    <p class="post-meta">
                        <span><?php echo(int_to_date($entry[5])); ?></span>
                        <a href="/tai-lieu-chong-tham/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="chitiettintuc"> Leave a comment</a>
                    </p>
        
                    <div class="entry"><?php echo($entry[2]); ?><a class="more-link" href="/tai-lieu-chong-tham/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html"> Read More &raquo;</a>
                    </div>
                </div>
            </li><!-- .first-news -->
         <?php
			} else {
		 ?>   
            <li>		
                <div class="post-thumbnail">
                    <a href="/tai-lieu-chong-tham/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="chitietcongtrinh" rel="bookmark"><img width="55" height="55" src="<?php echo($entry[6]); ?>" class="chitietcongtrinh" title="<?php echo($entry[1]); ?>" /></a>
                </div><!-- post-thumbnail /-->
                <h3 class="post-box-title"><a href="/tai-lieu-chong-tham/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="<?php echo($entry[1]); ?>" rel="bookmark"><?php echo($entry[1]); ?></a></h3>
                <p class="post-meta">
                    <span><?php echo(int_to_date($entry[5])); ?></span>
                    <a href="/tai-lieu-chong-tham/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="<?php echo($entry[1]); ?>"> Leave a comment</a>
                </p>
            </li>
         <?php
			}
			$index++;
		}
		 ?>   
        </ul>
    </div><!-- .cat-box-content /-->
</section><!-- Two Columns -->

<section class="cat-box column2 last-column">
    <div class="cat-box-title">
        <h2><a href="/phongthuynhao.html">Thông Tin Tham Khảo</a></h2>
        <div class="stripe-line"></div>
    </div><!-- post-thumbnail /-->
    <div class="cat-box-content">
        <ul>
        <?php
		$tinTucPhongThuyIndex = getPhongThuysLimitIndex(0, 5);
		$index = 1;
		foreach($tinTucPhongThuyIndex as $entry) {
			if ($index == 1) {
		?>
            <li class="first-news">
                <div class="inner-content">
                    <div class="post-thumbnail">
                        <a href="/phong-thuy-nha-o/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="<?php echo($entry[1]); ?>" rel="bookmark">
                            <img width="272" height="125" src="<?php echo($entry[6]); ?>" class="attachment-272x125" alt="<?php echo($entry[1]); ?>" title="<?php echo($entry[1]); ?>" />
                            <span class="overlay-icon"></span>
                        </a>
                    </div><!-- post-thumbnail /-->
                    <h2 class="post-box-title"><a href="/phong-thuy-nha-o/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="<?php echo($entry[1]); ?>" rel="bookmark"><?php echo($entry[1]); ?></a></h2>
                    <p class="post-meta">
                        <span><?php echo(int_to_date($entry[5])); ?></span>
                        <a href="/phong-thuy-nha-o/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="chitiettintuc"> Leave a comment</a>
                    </p>
        
                    <div class="entry"><?php echo($entry[2]); ?><a class="more-link" href="/phong-thuy-nha-o/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html"> Read More &raquo;</a>
                    </div>
                </div>
            </li><!-- .first-news -->
         <?php
			} else {
		 ?>   
            <li>		
                <div class="post-thumbnail">
                    <a href="/phong-thuy-nha-o/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="chitietcongtrinh" rel="bookmark"><img width="55" height="55" src="<?php echo($entry[6]); ?>" class="chitietcongtrinh" title="<?php echo($entry[1]); ?>" /></a>
                </div><!-- post-thumbnail /-->
                <h3 class="post-box-title"><a href="/phong-thuy-nha-o/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="<?php echo($entry[1]); ?>" rel="bookmark"><?php echo($entry[1]); ?></a></h3>
                <p class="post-meta">
                    <span><?php echo(int_to_date($entry[5])); ?></span>
                    <a href="/phong-thuy-nha-o/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html" title="<?php echo($entry[1]); ?>"> Leave a comment</a>
                </p>
            </li>
         <?php
			}
			$index++;
		}
		 ?>   
        </ul>
    </div><!-- .cat-box-content /-->
</section><!-- Two Columns -->

<script type="text/javascript">
    jQuery(document).ready(function() {
        var vids = jQuery("#slideshow1 .scroll-item");
        for(var i = 0; i < vids.length; i+=4) {
          vids.slice(i, i+4).wrapAll('<div class="group_items"></div>');
        }
        jQuery(function() {
            jQuery('#slideshow1').cycle({
                fx:     'scrollHorz',
                timeout: 3000,
                pager:  '#nav1',
                slideExpr: '.group_items',
                speed: 300,
                pause: true
            });
        });
  });
</script>

<section class="cat-box list-box"></section><!-- List Box -->
<!-- #cats-tabs-box /-->
